home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / rcs / rectangle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  968 b   |  53 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    96.08.22.02.05.49;    author dlorre;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Oui.lib -- Object User Interface
  17. Projet créé en 1994
  18. Auteur: Dominique Lorre
  19. @
  20.  
  21.  
  22. 1.1
  23. log
  24. @Initial revision
  25. @
  26. text
  27. @#ifndef CLASS_RECTANGLE_H
  28. #define CLASS_RECTANGLE_H 1
  29.  
  30. class rectangle
  31. {
  32. public:
  33.     short maxw ;    // MaxWidth
  34.     short maxh ;    // MaxHeight
  35.     short minw ;    // MinWidth
  36.     short minh ;    // MinHeight
  37.  
  38.     short left ;    // Left Edge
  39.     short top ;     // Top Edge
  40.     short width ;   // Width
  41.     short height ;  // Height
  42.  
  43.     rectangle(short l, short, short w, short h) ;
  44.     virtual ~rectangle() {}
  45.     void box(short l, short t, short w, short h) ;
  46.     void relbox(short dx, short dy, short dw, short dh) ;
  47.     virtual void move(short dx, short dy=0) ;
  48.     virtual void size(short dw, short dh=0) ;
  49.     virtual void limits(short wmin, short hmin, short wmax, short hmax) ;
  50.  };
  51. #endif
  52. @
  53.